package com.wht.bill.bean;


import java.util.Objects;

public class AccountBean {

    /**
     * 账户类型  银行卡    支付宝   微信  现金 其它
     */
    public String accountType;
    /**
     * 收入
     */
    public String income;
    /**
     * 支出
     */
    public String outcome;
    /**
     * 银行卡号
     */
    public String bankNo;

    @Override
    public boolean equals(Object pO) {
        if (this == pO) return true;
        if (!(pO instanceof AccountBean)) return false;

        AccountBean that = (AccountBean) pO;

        if (!Objects.equals(accountType, that.accountType))
            return false;
        return Objects.equals(bankNo, that.bankNo);
    }

    @Override
    public int hashCode() {
        int result = accountType != null ? accountType.hashCode() : 0;
        result = 31 * result + (bankNo != null ? bankNo.hashCode() : 0);
        return result;
    }
}
